package com.example.bijidemo.common;

public class BaseContext {
    private static ThreadLocal<String> threadLocal =new ThreadLocal();

    /*
    设置值 在线程所中
     */

    public static void setCurrentName(String s){
        threadLocal.set(s);

    }

    /*
    获取值在线程锁中
     */

    public  static String getCurrentName(){
        return threadLocal.get();
    }

}
